<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>详情页</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="css/mui.css"/>
</head>
<body>
    <header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">计算机</h1>
    </header>
    <div class="mui-content">
        <div class="mui-input-group">
				<div class="mui-input-row">
					<label>编号</label>
					<input type="text" name="AssetNum" id="AssetNum" readonly="readonly" placeholder="资产编号"/>
				</div>
				<div class="mui-input-row">
					<label>名称</label>
					<input type="text" name="AssetName" id="AssetName" readonly="readonly" placeholder="资产名称" />
				</div>
				<div class="mui-input-row">
					<label>类型规格</label>
					<input type="text" name="AssetModel" id="AssetModel" readonly="readonly" placeholder="资产类型规格" />
				</div>
				<div class="mui-input-row">
					<label>存放地</label>
					<input type="text" name="AssetStoreNum" id="AssetStoreNum" readonly="readonly" placeholder="存放地" />
				</div>
				<div class="mui-input-row">
					<label>领用人</label>
					<input type="text" name="AssetTakePeople" id="AssetTakePeople" readonly="readonly" placeholder="领用人" />
				</div>
				<div class="mui-input-row">
					<label>部门</label>
					<input type="text" name="AssetDepartNum" id="AssetDepartNum" readonly="readonly" placeholder="部门" />
				</div>
				<div class="mui-input-row">
					<label>单价</label>
					<input type="text" name="AssetPrice" id="AssetPrice" readonly="readonly" placeholder="单价" />
				</div>
				<div class="mui-input-row">
					<label>损益类型</label>
					<input type="text" name="DicProfitLossNum" id="DicProfitLossNum" readonly="readonly" placeholder="损益类型" />
				</div>
				<div class="mui-input-row">
					<label>单据号</label>
					<input type="text" name="AssetDocumentNum" id="AssetDocumentNum" readonly="readonly" placeholder="单据号" />
				</div>
				<div class="mui-input-row">
					<label>购置日期</label>
					<input type="date" name="AssetBuyDate" id="AssetBuyDate" readonly="readonly" placeholder="购置日期" />
				</div>
				<div class="mui-input-row">
					<label>厂家</label>
					<input type="text" name="AssetFactory" id="AssetFactory" readonly="readonly" placeholder="厂家" />
				</div>
				<div class="mui-input-row">
					<label>备注</label>
					<input type="text" name="AssetRemrk" id="AssetRemrk" readonly="readonly" placeholder="备注"/>
				</div>
			</div>
    </div>
    
    <script src="js/mui.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="js/addressinitialization.js" ></script>
    <script type="text/javascript">
    mui.init();
    mui.plusReady(function(){
    	/*获取头部标题*/
		// 1.获取页面传的参数
		var title = plus.webview.currentWebview().title_;
		var id = plus.webview.currentWebview().id_;
		// 2.将传的参数放到header中
		document.querySelector('.mui-title').innerText=title;
		//详细信息
	//获取div的id
	var assetNum = id;
	mui.ajax(IP + '/ias/AndroidInventAsset/MoreInformation', {
		data: {
			assetNum: id
		},
		type: 'post',
		dataType: 'json',
		headers: {
			'Content-Type': 'application/json'
		},
		success: function(response) {
			var asset = response.data;
			document.getElementById("AssetNum").value = asset.AssetNum;
			document.getElementById("AssetName").value = asset.AssetName;
			document.getElementById("AssetModel").value = asset.AssetModel;
			document.getElementById("AssetStoreNum").value = asset.AssetStoreNum;
			document.getElementById("AssetTakePeople").value = asset.AssetTakePeople;
			document.getElementById("AssetDepartNum").value = asset.AssetDepartNum;
			document.getElementById("AssetPrice").value = asset.AssetPrice;
			document.getElementById("DicProfitLossNum").value = asset.DicProfitLossNum;
			document.getElementById("AssetDocumentNum").value = asset.AssetDocumentNum;
			document.getElementById("AssetBuyDate").value = asset.AssetBuyDate;
			document.getElementById("AssetFactory").value = asset.AssetFactory;
			document.getElementById("AssetRemrk").value = asset.AssetRemrk;
			/*mui("#moreinformation").popover("toggle");*/
		},
		error: function(xhr, textStatus, errorThrown) {
			mui.alert("数据错误，请检查登陆状态");
		}
	});
    })
    
	
    </script>
</body>
</html>

